<template>
    <div class="container">
        <div class="meunBlog">
            <div class="left">
                <router-link to="/editBlog">EditBlog</router-link>
            </div>
            <div class="right">
                <router-link to="/home">首页</router-link>
                <router-link to="/archive">目录</router-link>
                <router-link to="/talk">留言区</router-link>
                <router-link to="/about">关于我</router-link>
                <router-link to="/friends">链接</router-link>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "Meun",
    beforeRouteUpdate(to, from, next) {
        console.log(to, from, next);
    },
};
</script>

<style scoped>
.container {
    background: #333;
    position: sticky;
    top: 0;
    min-height: 64px;
    line-height: 64px;
}
.meunBlog{
    width: 100%;
    max-width: 1170px;
    display: flex;
    justify-content: space-between;
    margin: auto;
}
.left a {
    font-weight: 900;
    font-size: 18px;
    padding: 20px;
}
.right a {
    font-size: 12px;
    font-weight: bold;
    padding: 20px;
}
a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 移动端 Meun菜单样式 */
@media screen and (max-width: 600px) {
    .left {
        display: none;
    }
    .right {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .right a {
        padding: 0;
    }
}
</style>
